package ecmnext.server.gui;

/***************************************************************/
/*                     SOFTWARE SECTION                        */
/***************************************************************/
/*
 * <p>Name: EC?Next</p>
 * <p>Description: Simulation of the platform of trading Software</p>
 * <p>Licence: General Public License</p>
 * <p>Organisation: EC Marseille</p>
 * <p>Persons involved in the project : groupe Plateforme de Trading</p>
 * <p>Current version: 1.0</p>
 */

/***************************************************************/
/*                       IMPORT SECTION                        */
/***************************************************************/

import ecmnext.business.*;
import javax.swing.*;

/***************************************************************/
/*                   AssetNode CLASS SECTION                   */
/***************************************************************/
/**
 * <p>Title : AssetNode</p>
 * <p>Description : </p>
 * @author Xuewen YANG ET Antoine COUDERC
 * @version 1.0
 */

public class AssetNode implements DisplayableNode {
  public AssetNode() {
    try {
      jbInit();
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }
  }

  private JPanel panel;

  public AssetNode(Asset asset) {
    this.panel = asset.getPanel();
  }

  public void setEditable(){}
  public void setUneditable(){}

  public JPanel getPanel() {
    return panel;
  }

  public String toString() {
    return this.panel.toString();
  }

  private void jbInit() throws Exception {
  }

}
